from flask import Blueprint

from service.CommentService import assemble_reply_comment, save_comment

api_comment = Blueprint('api_comment', __name__)
api_comment.url_prefix = '/api/comment'


@api_comment.route('/save_comment', methods=["POST"])
def save_reply_comment():
    comment = assemble_reply_comment()
    save_comment(comment)
    return {"code": 200, "msg": "success", "data": []}
